<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style"
	content="black-translucent">
<meta name="format-detection" content="telephone=no">
#parse("/h5/common/webWords.html")
<link rel=stylesheet type=text/css
	href="http://${staticHost}/css/component.css">
<script type="text/javascript" src="http://${staticHost}/js/jquery2.js"></script>
	<script type=text/javascript
	src="http://${staticHost}/js/modernizr.custom.js"></script>
	<script type=text/javascript
	src="http://${staticHost}/js/jquery.dlmenu.js"></script>
	<link rel="stylesheet" type="text/css" href="http://${staticHost}/css/style1.css" />
	<!--头部 begin -->
#parse("/h5/common/headerTop.html")
<!--头部 end -->
<!--登出系统 begin-->
#parse("/h5/common/loginHeader.html")
<!--登出系统 end-->
<script src="http://${staticHost}/js/TouchSlide.js"></script>
    <script type="text/javascript">
	$(document).ready(function() {
		$("#cancel").click(
			function() {
				window.location.href = '/personnelWork/auth/applyJob';
			});

		$("#sendResume").click(function() {
			var _this = $(this);
			var companyId = _this.attr('companyId');
			var userJobSeekerId = $("input[name='resumeName']:checked").val();
            if(userJobSeekerId.length == 0){
                showMessage('请选择要投递的简历');
                return;
            }
			var postId = $("#postId").val();
			var positionId = $("#positionId").val();
			var type = $("#type").val();

			var sendCount = $("#count").val();
			if(sendCount < 1){
				showMessage('今天申请数量已经用完，请明天再来');
				return;
			}
            if($(this).attr("status") == 2){
                return false;
            }
            $(this).attr("status",2);
            $.ajax({
				type : 'post',
				url : '/personnelWork/auth/sendResume',
				data : {
					companyId : companyId,
					userJobSeekerId : userJobSeekerId,
					postId : postId,
					positionId :positionId
				},
				success : function(result) {
					if ('00000000' == result.status) {
						showMessage('投递成功');
						if(type == 'personnel'){
							window.location.href = '/personnelWork/public/personnelIndex';
						}else {
							window.location.href = '/personnelWork/auth/applyJob';
						}
						
					}else{
						showMessage(result.message);
					}
				}
			});
		});
	});
</script>

<style type="text/css">
.scroll_box_more a:hover {
	background-color: #eeeeee;
	color: #666666;
}

.zs_news2 li {
	background: url('');
}

.kecheng li dl dt {
	background: url('');
}

.context_div {
	width: 100%;
	height: 35px;
}

.context_div span {
	/*color: #666666;*/
	font-size: 16px;
	width: 100%;
}

.center-vertical {
	display: block;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.text-size {
	font-size: 16px;
}

.text-color {
	color: #949494;
}

.span13 {
	border-radius: 3px;
	font-size: 16px;
	color: #e7e7e7;
	background-color: #4CAF50;
	margin-left: 20px;
}

.span14 {
	border-radius: 3px;
	font-size: 16px;
	color: #333;
	background-color: #f0f0f0;
	margin-left: 220px;
}

.button {
	background-color: #af2b3f;
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
	border-radius: 12px;
}

.button1 {
	background-color: #af2b3f;
	border: none;
	color: white;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
	width: 66px;
	border-radius: 3px;
	margin-left: 220px;
}

.button2 {
	background-color: #5f5f5f;
} /* Blue */
.button3 {
	background-color: #f44336;
} /* Red */
.button4 {
	background-color: #e7e7e7;
	color: black;
} /* Gray */
.button5 {
	background-color: #555555;
} /* Black */
.mbox{border-bottom: none;}
.main{margin:0;border-bottom: none;}
.jobtitle1{
	font-size: 18px;
    height: 50px;
    line-height: 50px;
	color: #333333;
	background-color: #fefeff;
	border-bottom: 1px solid #f8f7fc;
}
.gray_btn{
    background:#b4b4b4 ;
}
.menuSection {
	width: 100%;
	padding: 1rem 1.5rem;
	background: #f8f7fc;
}
</style>
</head>
<body style="background: #f8f7fc;">
#parse("/h5/common/back.html")
	<div style="background: white;">
		<div align="center" class="jobtitle1">
			投递简历
		</div>
		<div class="weizhi"
			style="text-align: left; font-size: 18px; height: 42px; font-size: 16px; border-bottom: 0px;">
			<input type="checkbox" name="resume" id="checkedbox1" value="all" checked="checked" disabled="disabled" /><label for="checkedbox1"></label>$post
		</div>
		<section class="menuSection">
			每天最多能申请18个职位,剩余申请<span style="color:#000;font-size:18px;padding: 2px;">$count</span>个职位
		</section>
		<div class="mbox">
            <div style="font-size: 16px;color:#666;padding: 10px 0px 10px 5px;border-bottom: 1px solid #f8f7fc">请选择简历</div>
			<div class="kecheng clear">
				<input type="hidden" id="userJobBasisId" value="$userJobBasisId" />
				<input type="hidden" id="postId" value="$postId" />
				<input type="hidden" id="type" value="$type" />
				<input type="hidden" id="count" value="$count" />
				<ul>
					#foreach($userJob in $userJobList)
					<li>
						<dl>
							<div class="context_div text-size">

								<span class="center-vertical" style="font-size: 1.6rem;"> #if($userJob.defaultFlag==
									'1') <input type="radio" name="resumeName" checked
									value="$userJob.id" /> #else <input type="radio"
									name="resumeName" value="$userJob.id" /> #end <a href="javascript:void(0)"
									class="myResume" jobId="$userJob.id" style="margin-left: 10px;">$userJob.resumeName</a>
								</span>
							</div>
						</dl>
					</li> #end
				</ul>
			</div>
			<input type="hidden" id="resumeCount" value="$count">
			<input type="hidden" id="positionId" value="$positionId">
			<div style="text-align: center;">
				<span> <input type="button" value="立即申请" status="1" class="global-button-big"
					id="sendResume" companyId="$companyId"
					style="margin-top: 20px; margin-bottom: 30px;"> <input
					type="button" value="取消" class="global-button-big gray_btn" id="cancel"
					style="margin-top: 20px; margin-bottom: 30px; margin-left: 20px; width: 130px;">
				</span>
			</div>
		</div>
	</div>

	<div class="holderdiv"></div>
	<!--底部 begin -->
	#parse("/h5/common/footer.html")
	<!-- 底部 end -->
</body>
</html>
